cmake_minimum_required(VERSION 2.8)
PROJECT(MekaSkin)

INCLUDE (CheckIncludeFile)

## Compiler flags
if(CMAKE_COMPILER_IS_GNUCXX)
    set(CMAKE_CXX_FLAGS "-O2 -lpthread -std=gnu++0x")
endif()

## Build shared library 
SET(LIBMEKASKIN_SRC src/TaxelArray.h src/TaxelArray.cc)
ADD_LIBRARY(mekaskin SHARED ${LIBMEKASKIN_SRC})

ADD_EXECUTABLE(TestTaxelArray src/TestTaxelArray.cc)

TARGET_LINK_LIBRARIES(TestTaxelArray mekaskin)
